﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="ThanhToan.aspx.cs" Inherits="SES.CMS.ThanhToan" Title="Untitled Page" %>

<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="cc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #RegisterForm
        {
            border: 1px solid #ccc;
            padding: 15px 5px;
            margin: 5px -6px 5px 0px;
            height: 500px;
        }
        .done
        {
            background: url(             "images/done.png" ) no-repeat;
            width: 101px;
            height: 31px;
            border: none;
        }
        .dTTTT
        {
            margin: 5px -6px 5px 0px;
            border: 1px solid #ccc;
            padding: 15px 5px;
        }
             .sp_info_detai
        {
            float: left;
            padding: 0 0 0 0px;
            width: 110px;
        }
        .button3
        {
        	margin-left:30px;
        	}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="">
        <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px; text-align: left;">
            Thông tin giỏ hàng</h3>
        <asp:GridView runat="server" ID="GridGioHang" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
            AllowPaging="True" OnPageIndexChanging="GridGioHang_PageIndexChanging" OnRowCommand="GridGioHang_RowCommand"
            CellPadding="4" Width="730px" BackColor="White" BorderColor="#CC9966" BorderStyle="None"
            BorderWidth="1px" OnRowDataBound="GridGioHang_RowDataBound" DataKeyNames="STT"
            OnDataBinding="GridGioHang_DataBinding" OnDataBound="GridGioHang_DataBound" ShowFooter="false">
            <RowStyle BackColor="White" ForeColor="#330099" />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                    <FooterTemplate>
                        Tổng tiền:
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="TenSanPham" HeaderText="Tên SP" />
                <asp:TemplateField HeaderText="Số Lượng">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="txtSL" Width="20px" Text='<%#DataBinder.Eval(Container.DataItem,"SoLuong") %>'>
                        </asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Đơn Giá">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbDG" Text='<%#DataBinder.Eval(Container.DataItem,"DonGia") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Giảm Giá">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbGG" Text='<%#Eval("GiamGia")+"%" %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thành Tiền">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbThanhTien" Text='<%#DataBinder.Eval(Container.DataItem,"ThanhTien","{0:0,0 VNĐ}") %>'>
                        </asp:Label>
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:Label ID="lbTong" runat="server"></asp:Label>
                    </FooterTemplate>
                    <FooterStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
        </asp:GridView>
        <br />
        <div style="width: 400px; margin-left: auto; margin-right: 10px; text-align: right;">
            <asp:Label ID="lblSum" runat="server"></asp:Label><br />
            <asp:Label ID="lbThanhTien" runat="server"></asp:Label>
        </div>
        <div align="center" style="margin-top: 15px;" class="ltr">
        </div>
        <div id="RegisterForm">
            <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px; text-align: left;">
                Thông tin thanh toán</h3>
            <ul class="append_info">
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Họ tên </span><span class="cl_sp">:</span> <span class="info_result">
                    </span>
                    <asp:TextBox runat="server" ID="txtHT" CssClass="ip_info_result" type="text" TabIndex="1"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHT"
                        ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </li>
                <!--END DIV gender-->
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Địa chỉ </span><span class="cl_sp">:</span> <span class="info_result">
                    </span>
                    <asp:TextBox runat="server" ID="txtDC" CssClass="ip_info_result" type="text" TabIndex="2"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDC"
                        ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </li>
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Số điện thoại </span><span class="cl_sp">:</span> <span
                        class="info_result"></span>
                    <asp:TextBox runat="server" ID="txtsdt" CssClass="ip_info_result" type="text" TabIndex="3"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtsdt"
                        ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </li>
                <!--END DIV gender-->
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Email</span><span class="cl_sp">:</span> <span class="info_result">
                    </span>
                    <asp:TextBox runat="server" ID="txtEmail" CssClass="ip_info_result" type="text" TabIndex="4"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Sai định dạng email"
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                </li>
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Kiểu thanh toán </span><span class="cl_sp">:</span>
                    <span class="info_result"></span>
                    <asp:TextBox runat="server" ID="txtHTTT" CssClass="ip_info_result" type="text" TabIndex="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHTTT"
                        ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </li>
                <!--END DIV gender-->
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Địa chỉ giao hàng</span><span class="cl_sp">:</span>
                    <span class="info_result"></span>
                    <asp:TextBox runat="server" ID="txtDCGH" CssClass="ip_info_result" type="text" TabIndex="6"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtDCGH"
                        ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </li>
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Ghi chú</span><span class="cl_sp">:</span> <span class="info_result">
                    </span>
                    <asp:TextBox runat="server" ID="txtGC" CssClass="ip_info_result" type="text" TabIndex="7" Height="100px"
                        TextMode="MultiLine"></asp:TextBox>
                </li>
                <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span>Ngày giao hàng</span><span class="cl_sp">:</span> <span
                        class="info_result"></span>
                    <asp:TextBox runat="server" ID="txtNgayGiaoHang" CssClass="ip_info_result" type="text"
                        TabIndex="8"></asp:TextBox>
                </li>
                <li class="info_detail" style="border: none;"><span class="sp_info_detai"><span style="font-size: 9px;
                    padding-right: 5px;"></span></span><span class="cl_sp" style="padding-right:10px;"></span> <span class="info_result" style="margin-right:20px;">
                    </span>
                    <asp:Button ID="btn" runat="server" Text="Gửi đơn hàng" OnClick="btn_Click" CssClass="button button3" />
                    <asp:Button ID="btnHuy" runat="server" Text="Hủy" OnClick="btnHuy_Click" CssClass="button" />
                </li>
                <!--END DIV gender-->
            </ul>
        </div>
        <div class="dTTTT">
            <asp:Label runat="server" ID="lblThongTinThanhToan" Text=""></asp:Label>
        </div>
        <cc:CalendarExtender runat="server" ID="celander1" TargetControlID="txtNgayGiaoHang"
            Format="dd/MM/yyyy">
        </cc:CalendarExtender>
</asp:Content>
